package bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import common.RowMapper;

public class CartRowMapper implements RowMapper<Cart> {

	public Cart mapper(ResultSet rs) throws SQLException {
		Cart cart=new Cart();
		cart.setId(rs.getInt("id"));
		cart.setUserid(rs.getInt("userid"));
		cart.setGoodsid(rs.getInt("goodsid"));
		cart.setGoodsNum(rs.getInt("goods_num"));
		return cart;
	}

}
